
#ifndef QPIXMAPITEM_H
#define QPIXMAPITEM_H

#include<QGraphicsItem>
#include<QPainter>
#include<QPixmap>
#include<QGraphicsScene>
//用于添加场景item的基类


class Qpixmapitem:public QGraphicsItem
{
public:
    Qpixmapitem();
    Qpixmapitem(const QString & fileName,QGraphicsScene*);

    virtual QRectF boundingRect() const;
    void paint(QPainter*,const QStyleOptionGraphicsItem*,QWidget*);
protected:
    QPixmap pixmap;
};

#endif // QPIXMAPITEM_H
